package demo1;

public class testStudent {
    public static void main(String[] args) throws CloneNotSupportedException {
        Student student1 = new Student("zhangsan",85);
        Student student2 = (Student) student1.clone();
        System.out.println(student1.m.money);
        System.out.println(student2.m.money);
        student1.m.money = 55;

        System.out.println(student1.m.money);
        System.out.println(student2.m.money);
    }
}
